<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script type="text/javascript">
			var s = "tom12marry34james";
			
			var reg = /\d{2}/g;
			
			var arr = s.match(reg);
			
			console.log(arr);

		</script>
	</head>
	<body>
	</body>
</html>
